/**
 * Created by xiaopingfeng on 9/30/17.
 */
var logger = require('log4js').getLogger('services');

var http = require('http'),
    Faye = require('faye'),
    PORT = 8001

var server = http.createServer(),
    bayeux = new Faye.NodeAdapter({mount: '/events'});

bayeux.attach(server);
server.listen(PORT);

logger.info('message_server', PORT)